[PWGJE,Infrastructure] Create qg tree creator#15555
Open
Physicistdana wants to merge 29 commits intoAliceO2Group:masterfrom
Open
[PWGJE,Infrastructure] Create qg tree creator#15555Physicistdana wants to merge 29 commits intoAliceO2Group:masterfrom
Physicistdana wants to merge 29 commits intoAliceO2Group:masterfrom
Conversation
vkucera
reviewed
Mar 29, 2026
PWGJE/Tasks/qgTreeCreator.cxx
Outdated
| //------------------------------------------------ | ||
| float deltaPhi(float phi1, float phi2) | ||
| { | ||
| return std::remainder(phi1 - phi2, 2.f * static_cast<float>(M_PI)); |
Collaborator
There was a problem hiding this comment.
There is RecoDecay::constrainAngle for this.
PWGJE/Tasks/qgTreeCreator.cxx
Outdated
| return std::remainder(phi1 - phi2, 2.f * static_cast<float>(M_PI)); | ||
| } | ||
|
|
||
| float deltaR(float eta1, float phi1, float eta2, float phi2) |
Collaborator
There was a problem hiding this comment.
Isn't this an existing method?
PWGJE/Tasks/qgTreeCreator.cxx
Outdated
| int mpdg = mom.pdgCode(); | ||
|
|
||
| // stop at quark or gluon | ||
| if (std::abs(mpdg) == 21 || (std::abs(mpdg) >= 1 && std::abs(mpdg) <= 6)) { |
PWGJE/Tasks/qgTreeCreator.cxx
Outdated
| WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) | ||
| { | ||
| return WorkflowSpec{ | ||
| adaptAnalysisTask<QGTreeCreator>(cfgc, TaskName{"qg-tree-creator"})}; |
Collaborator
There was a problem hiding this comment.
Why do you need TaskName?
Author
There was a problem hiding this comment.
Thanks for the review. I updated the code implementation.
This task creates a quark–gluon tagging training table from matched detector- and particle-level jets. It stores jet substructure observables, matching ΔR, and initiating-parton label. My goal is to create a compact training table for ML-based quark–gluon discrimination study
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jet analysis code